package com.android.happymall.model.auction;

import com.android.happymall.utils.MyLog;
import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/10/19.
 */

public abstract class Orderts_HistoryDataCallback extends Callback<Orderts_HistoryData> {

    @Override
    public Orderts_HistoryData parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        MyLog.e("Orderts_HistoryData",string);
        Orderts_HistoryData data = new Gson().fromJson(string,Orderts_HistoryData.class);
        return data;
    }
}
